<?php

namespace App\Requests\Api\Employees;

use Illuminate\Foundation\Http\FormRequest;

/**
 * 用户列表校验
 * Class ListReques
 * @package App\Requests\Api\Users
 */
class LoginRequest extends FormRequest {
    public function authorize() {
        return true;
    }

    public function rules() {
        return [
            'account'  => 'required',
            'password' => 'required',
        ];
    }

    public function messages() {
        return [
            'password.required' => 'password 错误',
            'account.required'  => 'account 错误',
        ];
    }
}